package edu.sctu.zhuyingzhi.month201505.day20150527.studentToEatTest;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by user13 on 2015/5/27.
 */
public class Conteen {
    private HashMap<Integer,HashMap<Integer,HashMap<String,Integer>>> conteen = new HashMap<>();
    private List<String> seat = new ArrayList<>();
    private int queueLone ;


    public Conteen(){
        /**
         * 一楼每个窗口对应的菜品
         */
          HashMap<String,Integer> OneFloorWindowOne = new HashMap<String,Integer>();
          HashMap<String,Integer> OneFloorWindowTwo = new HashMap<String,Integer>();
          HashMap<String,Integer> OneFloorWindowThree = new HashMap<String,Integer>();


          OneFloorWindowOne.put("青椒肉丝",6);
          OneFloorWindowOne.put("红椒肉丝",7);
          OneFloorWindowOne.put("鱼香肉丝",6);
          OneFloorWindowOne.put("双椒肉丝",8);

          OneFloorWindowTwo.put("笋子烧鸡肉",9);
          OneFloorWindowTwo.put("青笋木耳炒肉",5);
          OneFloorWindowTwo.put("笋子炖牛肉",7);
          OneFloorWindowTwo.put("笋子炒肉",7);

          OneFloorWindowThree.put("青椒回锅",8);
          OneFloorWindowThree.put("莲白回锅",6);
          OneFloorWindowThree.put("蒜苗回锅",6);
          OneFloorWindowThree.put("豆干回锅", 7);

        /**
         *  二楼每个窗口对应的菜品
         */
        HashMap<String,Integer> TwoFloorWindowOne = new HashMap<String,Integer>();
        HashMap<String,Integer> TwoFloorWindowTwo = new HashMap<String,Integer>();


        TwoFloorWindowOne.put("红烧肉",6);
        TwoFloorWindowOne.put("鱼香茄子",4);
        TwoFloorWindowOne.put("土豆烧肉",8);
        TwoFloorWindowOne.put("麻婆豆腐",5);

        TwoFloorWindowTwo.put("豆腐烧鱼",4);
        TwoFloorWindowOne.put("土豆烧鸡",5);
        TwoFloorWindowOne.put("韭菜豆干",3);
        TwoFloorWindowOne.put("魔芋烧鸭",5);
        /**
         * 三楼每个窗口的菜品
         */
        HashMap<String,Integer> ThreeFloorWindowOne = new HashMap<String,Integer>();
        HashMap<String,Integer> ThreeFloorWindowTwo = new HashMap<String,Integer>();

        ThreeFloorWindowOne.put("红烧鱼",10);
        ThreeFloorWindowOne.put("酸菜鱼",12);
        ThreeFloorWindowOne.put("豆鼓武昌鱼",15);

        ThreeFloorWindowTwo.put("凉面",4);
        ThreeFloorWindowTwo.put("孜然羊肉",11);
        ThreeFloorWindowTwo.put("爆炒小黄牛",11);

        /**
         * 每楼的每个窗口
         */
        HashMap<Integer,HashMap<String,Integer>> OneFloorWindow = new HashMap<>();
        HashMap<Integer,HashMap<String,Integer>> TwoFloorWindow = new HashMap<>();
        HashMap<Integer,HashMap<String,Integer>> ThreeFloorWindow = new HashMap<>();

        OneFloorWindow.put(1,OneFloorWindowOne);
        OneFloorWindow.put(2,OneFloorWindowTwo);
        OneFloorWindow.put(3,OneFloorWindowThree);

        TwoFloorWindow.put(1,TwoFloorWindowOne);
        TwoFloorWindow.put(2,ThreeFloorWindowTwo);

        ThreeFloorWindow.put(1,ThreeFloorWindowOne);
        ThreeFloorWindow.put(2,ThreeFloorWindowTwo);
        /**
        * 食堂的楼层
        */

        conteen.put(1,OneFloorWindow);
        conteen.put(2,TwoFloorWindow);
        conteen.put(3,ThreeFloorWindow);

        int x;
        for (int i = 0; i < 100; i++) {
            x = (int) (Math.random()*10);
            if (x<5)
            seat.add("有位子");
            else
            seat.add("没位子");
            i++;
        }


        queueLone = (int) (Math.random()*20);



    }




    public int getQueueLone(){
        return queueLone;
    }

    public HashMap<Integer,HashMap<Integer,HashMap<String,Integer>>> getConteen(){

        return conteen;
    }

    public List<String> getSeat(){
        return seat;
    }

}
